package cc.linker.steplink.crm.dao;

import cc.linker.steplink.crm.domain.RobotDynamicPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MarketRobotDao {

    Boolean addMarketRobotList(Map<String,String> param);

    Boolean delConpose(Map<String,String> param);

    List<Map<String, String>> getComposeInfo(String composeId);

    List<Map<String, String>> getMarketRobotList(Map<String,Object> map);

    String getComposeStatus(String composeId);

    Boolean setComposeStatus(Map<String,String> param);

    void setGoodsArticle(String articleId);

    List<Map<String, String>> getOrgIdByNameAndValue(Map<String,String> param);

    List<Map<String, String>> getAllUnsendRobotArticles(Map<String,String> param);

    Map<String, String> getUnsendRobotArticles(Map<String,String> param);

    List<Map<String, String>> getCustomerByRand(Map<String,Object> param);

    void doneRobotArticle(String articleId);

    List<Map<String, String>> getlabelIds(String orgId);

    Map<String, String> getOneArticle(@Param("labelId") String labelId, @Param("orgId") String orgId,@Param("token") String token, @Param("openid") String openid);

    Map<String,Object> getPushLog(@Param("token") String token, @Param("openid") String openid, @Param("pushType") String pushType);

    void savePushLog(Map<String,String> param);

    List<Map<String, Object>> getActiveChart(String orgId);

    List<RobotDynamicPo> getRobotDynamicList(Map<String, Object> param);

    List<String> getLocalArticleIds(String orgId);

    int countArticleByArticleIds(@Param("articleIds")List<String> articleIds,@Param("orgId") String orgId);

    List<String> getLabelNameByIds(@Param("labelIds")List<String> labelIds);

    int countComposeByName(@Param("composeName") String composeName, @Param("orgId") String orgId);
}
